<?php include_once('blocks/navigator.php');
$detail = $tc->detail($row_menu_one['type_id'],$dt);
$row_detail = mysql_fetch_array($detail);
$view_post .= '<div id="product_detail"><div id="viewpost"><h1>'.$row_detail['name'].'</h1>'.$row_detail['content'].'</div><div style="clear:both; height:40px; border-bottom:solid 1px #d4d4d4"></div>';

$sp_cungloai = $tc->tin_cungloai($row_menu_one['id'],$row_detail['id']);
if(mysql_num_rows($sp_cungloai) > 0){
	$view_post .= '<div class="title">Bài viết khác</div>';
	while($row_sp_cungloai = mysql_fetch_array($sp_cungloai)){
		$view_post .= '<div class="item2"><a href="'.$row_menu_one['url'].$row_sp_cungloai['name_rewrite'].'.html"><h4>'.$row_sp_cungloai['name'].'</h4></a></div>';
	}
	mysql_free_result($sp_cungloai);
	$view_post .= '<div style="clear:both; height:10px"></div>';
}
$view_post .= '</div>';